Specify out - of - program components with interfaces 原則6 .用接口說(shuō)明外部程序組件
Executive program components 管理程序的組成
Marketing program components 營(yíng)銷(xiāo)計(jì)劃內(nèi)容
Along the same lines , it is useful to design interfaces to program components in tandem with the tests over them 沿著相同線路,設(shè)計(jì)和自己的測(cè)試代碼串聯(lián)在一起的程序組件接口是有益的。
Using interfaces to specify outside program components allows for easy simulation of these components in the test cases 用接口說(shuō)明外部程序組件使得我們可以容易地在測(cè)試案例中模擬這些組件。